Subscribe Us

Responsive Advertisement

Advertisement

URI Online Judge | 1536 Libertadores solution in cpp

 uri 1536 solution in cpp

by ujjal roy



#include<bits/stdc++.h>

using namespace std;

main()

{

    int n,a1,b1,a2,b2;

    char c1,c2;

    cin>>n;

    while(n--)

    {

        cin>>a1>>c1>>b1;

        cin>>a2>>c2>>b2;

        if(a1+b2>a2+b1) cout<<"Time 1"<<endl;

         else if(a1+b2<a2+b1) cout<<"Time 2"<<endl;

         else

         {

             if(b2>b1) cout<<"Time 1"<<endl;

             else if(b2<b1) cout<<"Time 2"<<endl;

             else cout<<"Penaltis"<<endl;

         }


    }


    return 0;

}


Post a Comment

0 Comments